import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'

import ElementPlus from 'element-plus'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import './assets/css/element.scss'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import './assets/css/iconfont.css'
import 'lib-flexible-computer'
import { WebtopoSvgPreview, WebtopoSvgEdit } from '@/svg/webtopo-svg-edit.es.js'
import '@/svg/style.css'
import 'element-plus/theme-chalk/dark/css-vars.css'
// import VueVideoPlayer from '@videojs-player/vue'
// import 'video.js/dist/video-js.css'
const app = createApp(App)
app.component('WebtopoSvgPreview', WebtopoSvgPreview)
app.component('WebtopoSvgEdit', WebtopoSvgEdit)

app.use(createPinia())
app.use(router)
app.use(ElementPlus, {
    locale: zhCn,
})
// app.use(VueVideoPlayer)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}

app.mount('#app')
